package com.jdls;

import com.jdls.config.WPConfig;
import com.jdls.service.WPService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author 嘉德罗斯
 * @date 2021/9/13
 */

public class WPApp {
    public static void main(String[] args) {
        ApplicationContext ac = new AnnotationConfigApplicationContext(WPConfig.class);
        WPService bean = ac.getBean(WPService.class);
        System.out.println(bean.getClass());
        boolean b = bean.openURL("   ", "root  ");
        System.out.println(b);
    }
}
